
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_xml_dom_ls_SAXEventSink__
#define __gnu_xml_dom_ls_SAXEventSink__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace xml
    {
      namespace dom
      {
          class DomDocument;
        namespace ls
        {
            class SAXEventSink;
        }
      }
    }
  }
  namespace org
  {
    namespace w3c
    {
      namespace dom
      {
          class Attr;
          class Document;
          class Element;
          class Node;
          class Text;
      }
    }
    namespace xml
    {
      namespace sax
      {
          class Attributes;
          class Locator;
          class XMLReader;
      }
    }
  }
}

class gnu::xml::dom::ls::SAXEventSink : public ::java::lang::Object
{

public:
  SAXEventSink();
public: // actually package-private
  virtual void interrupt();
public:
  virtual ::org::w3c::dom::Document * getDocument();
  virtual void setReader(::org::xml::sax::XMLReader *);
  virtual void setDocumentLocator(::org::xml::sax::Locator *);
  virtual void setNamespaceAware(jboolean);
  virtual void startDocument();
  virtual void endDocument();
  virtual void startPrefixMapping(::java::lang::String *, ::java::lang::String *);
  virtual void endPrefixMapping(::java::lang::String *);
  virtual void startElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
public: // actually protected
  virtual ::org::w3c::dom::Element * createElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
  virtual ::org::w3c::dom::Attr * createAttr(::org::xml::sax::Attributes *, jint);
public:
  virtual void endElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void characters(JArray< jchar > *, jint, jint);
public: // actually protected
  virtual ::org::w3c::dom::Text * createText(JArray< jchar > *, jint, jint);
public:
  virtual void ignorableWhitespace(JArray< jchar > *, jint, jint);
  virtual void processingInstruction(::java::lang::String *, ::java::lang::String *);
public: // actually protected
  virtual ::org::w3c::dom::Node * createProcessingInstruction(::java::lang::String *, ::java::lang::String *);
public:
  virtual void skippedEntity(::java::lang::String *);
  virtual void startDTD(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
public: // actually protected
  virtual ::org::w3c::dom::Node * createDocumentType(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
public:
  virtual void endDTD();
  virtual void startEntity(::java::lang::String *);
  virtual void endEntity(::java::lang::String *);
  virtual void startCDATA();
  virtual void endCDATA();
  virtual void comment(JArray< jchar > *, jint, jint);
public: // actually protected
  virtual ::org::w3c::dom::Node * createComment(JArray< jchar > *, jint, jint);
public:
  virtual void notationDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void unparsedEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void elementDecl(::java::lang::String *, ::java::lang::String *);
  virtual void attributeDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void internalEntityDecl(::java::lang::String *, ::java::lang::String *);
  virtual void externalEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
private:
  static ::java::lang::String * XMLNS_URI;
  static ::java::lang::String * XMLNS_PREFIX;
  static ::java::util::HashSet * PREDEFINED_ENTITIES;
  jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) namespaceAware;
public: // actually package-private
  jboolean ignoreWhitespace;
  jboolean expandEntityReferences;
  jboolean ignoreComments;
  jboolean coalescing;
  ::org::xml::sax::XMLReader * reader;
  ::gnu::xml::dom::DomDocument * doc;
  ::org::w3c::dom::Node * ctx;
  ::java::util::LinkedList * entityCtx;
  ::java::util::List * pending;
  ::org::xml::sax::Locator * locator;
  jboolean inCDATA;
  jboolean inDTD;
  jboolean interrupted;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_xml_dom_ls_SAXEventSink__
